<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="Generator" content="EditPlus®">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<title>Document</title>
<link rel="stylesheet" type="text/css" href="css/fault.css">
</head>
<script type="text/javascript">
	function updatefaultrecord(){
		mdiv = document.getElementById("profile");
		if (profile.phone.value == "") {
			alert("电话不能为空！");
			profile.phone.focus();
			return ;
		}
		if (profile.symptom.value == "") {
			alert("故障现象不能为空！");
			profile.symptom.focus();
			return ;
		}

		if (confirm('确定提交')){
			document.profile.action="updateFaultRecordAction.action";
			document.profile.submit();
		}else{
			return false;
		}
	}
</script>
<body>
	<form id="profile" class="setting-profile-form" method="post"
		action="updateFaultRecordAction">
		<div class="setting-detail" id="stthld" style="display:block;">
			<div class="detail-bg"></div>
			<div class="plzhld clearfix">
				<div class="mod-setting-profile" id="100001" style="display:block;">
					<div class="setting-profile-title yahei">
						故障记录修改
						<div style="float:right;padding-right: 20px;">
							<input type="button" onclick="javasrcipt:history.go(-1)"
								value="返回" />
						</div>
						<div style="float:right;padding-right: 50px;">
							<input type="submit"
								onclick="javascript:if(confirm('确定')) return true ;else return false;"
								value="修改" />
						</div>
					</div>

					<table style="width:1094px;">
						<!-- 大table包含左右两个table -->
						<tr>
							<td>
								<table style="wdith:546px;">
									<tr>
										<th>记录编号：</th>
										<td><input class="INPUTSTYLE1" type="text"
											value='<s:property value="#request.faultRecord.id"/>'
											name="id" readonly="readonly" />
										</td>
									</tr>
									<tr>
										<th>事件名称：</th>
										<td><input class="INPUTSTYLE1" type="text"
											value='<s:property value="#request.faultRecord.eventname"/>'
											name="eventname" />
										</td>
									</tr>
									<tr>
										<th>故障发生时间：</th>
										<td><input class="INPUTSTYLE1" type="text"
											value='<s:property value="#request.faultRecord.happentime"/>'
											name="happentime" disabled="disabled" />
										</td>
									</tr>
									<tr>
										<th>记录时间：</th>
										<td><input class="INPUTSTYLE1" type="text"
											value='<s:property value="#request.faultRecord.jltime"/>'
											name="jltime" disabled="disabled" />
										</td>
									</tr>
									<tr>
										<th>是否已处理：</th>
										<td><s:if test="#request.faultRecord.mark == 1">
												<input type="radio" value="1" name="markdeal"
													checked="checked">是 <input type="radio" value="2"
													name="markdeal" />否
											</s:if> <s:else>
												<input type="radio" value="1" name="markdeal">是 <input
													type="radio" value="2" checked="checked" name="markdeal" />否</s:else>
										</td>
									</tr>
									<tr>
										<th>报故障处电话：</th>
										<td><input class="INPUTSTYLE1" type="text"
											value='<s:property value="#request.faultRecord.phone"/>'
											name="phone" />
										</td>
									</tr>
								</table></td>
							<td>
								<table style="wdith:546px;">
									<tr>
										<th>记录人：</th>
										<td><input class="INPUTSTYLE1" type="text"
											value='<s:property value="#request.faultRecord.user.uname"/>'
											name="uname" disabled="disabled" />
										</td>
									</tr>
									<tr>
										<th>故障编号：</th>
										<td><input class="INPUTSTYLE1" type="text"
											value='<s:property value="#request.faultRecord.faultId"/>'
											name="faultId" disabled="disabled" />
										</td>
									</tr>
									<tr>
										<th>故障名：</th>
										<td><input class="INPUTSTYLE1" type="text"
											value='<s:property value="#request.faultRecord.fname"/>'
											name="fname" disabled="disabled" />
										</td>
									</tr>
									<tr>
										<th>故障现象：</th>
										<td><textarea name="symptom" class="fault-nomal1"
										><s:property value="#request.faultRecord.symptom"
										/></textarea></td>
									</tr>
								</table>
							</td>
						</tr>
					</table>
				</div>
			</div>
		</div>
	</form>
</body>
</html>
